package com.device.grant.service;

import java.util.List;
import java.util.Map;
import java.util.Set;

import com.device.grant.pojo.Apparatus;
import com.device.grant.pojo.vo.ApparatusVo;
import com.device.grant.utils.ColumnCompator;

public interface ApparatusService {

	boolean addApparatus(Apparatus apparatus);

	boolean updateApparatus(Map<String, Object> changeInfos, Map<String, Object> conditions);

	Integer countApparatus(Map<String, Object> conditions, List<String> blearParams, Map<String, ColumnCompator> compators);

	List<ApparatusVo> queryApparatusInclude(Integer page, Integer rows, Map<String, Object> params, List<String> blearParams,
			Map<String, ColumnCompator> compators, String orderBy);

	ApparatusVo getTheApparatusVo(Map<String, Object> conditions);

	boolean updateApparatusByBean(Apparatus apparatus);

	List<Apparatus> queryApparatusInGroup(Map<String, Object> conditions);

	List<Apparatus> queryApparatusByIds(Set<Integer> ids);

	List<Apparatus> queryApparatus(Integer page, Integer rows, Map<String, Object> params, List<String> blearParams,
			Map<String, ColumnCompator> compators, String orderBy);
	
	Apparatus getApparatus(Map<String, Object> conditions);
}
